/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dis.service;

import java.sql.Connection;
import java.io.FileNotFoundException;
import java.io.IOException;
import dis.model.ConnectBD;
import dis.model.DatosConfiguracion;

/**
 *
 * @author Manuel Lap
 */
public class ServiceConnect {
    
    public Connection connect() throws FileNotFoundException, IOException{
        ConnectBD conexion = new ConnectBD();
        DatosConfiguracion configData = new DatosConfiguracion();        
        configData.getDatosConfig();
        conexion.setDatosConfig(configData);
        conexion.conect();        
        return conexion.getConnection();
    }
    
}
